.class public Lcom/teewoo/app/bus/ui/Home4StaticMap;
.super Lcom/teewoo/app/bus/inface/BaseActivity;
.source "Home4StaticMap.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;,
        Lcom/teewoo/app/bus/ui/Home4StaticMap$MyWebChromeClient;,
        Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;
    }
.end annotation


# static fields
.field public static final CITY_LONGYAN:Ljava/lang/String; = "[\u9f99\u5ca9]"

.field public static final CITY_OTHER:Ljava/lang/String; = "[\u5176\u4ed6\u57ce\u5e02]"

.field public static final CITY_QUANZHOU:Ljava/lang/String; = "[\u6cc9\u5dde]"

.field public static final CITY_XIAMEN:Ljava/lang/String; = "[\u53a6\u95e8]"

.field public static final JS_INTERFACE_NAME:Ljava/lang/String; = "doudou"

.field protected static final MESSAGE_BADLOCATION_TOAST:I = 0x1

.field protected static final MESSAGE_LOCATION_NOT_CHANGE:I = 0x4

.field protected static final MESSAGE_LOCATION_SUCCESS_TOAST:I = 0x2

.field protected static final MESSAGE_MAP_INIT_FINISH:I = 0x6

.field protected static final MESSAGE_NEW_VERSION_FOUND:I = 0x7

.field protected static final MESSAGE_REFLASH_MAP_FAILE:I = 0x5

.field protected static final MESSAGE_REFLASH_MAP_SUCCESS:I = 0x3

.field protected static final TAB1_IMAGE:I = 0x7f020009

.field protected static final TAB1_NAME:Ljava/lang/String; = "\u516c\u4ea4"

.field protected static final TAB1_ON_IMAGE:I = 0x7f020008

.field protected static final TAB1_TAG:Ljava/lang/String; = "tab_1"

.field protected static final TAB2_IMAGE:I = 0x7f020066

.field protected static final TAB2_NAME:Ljava/lang/String; = "\u5929\u6c14"

.field protected static final TAB2_ON_IMAGE:I = 0x7f020065

.field protected static final TAB2_TAG:Ljava/lang/String; = "tab_2"

.field protected static final TAB3_IMAGE:I = 0x7f020034

.field protected static final TAB3_NAME:Ljava/lang/String; = "\u81ea\u5df1"

.field protected static final TAB3_ON_IMAGE:I = 0x7f020033

.field protected static final TAB3_TAG:Ljava/lang/String; = "tab_3"

.field protected static final TAB4_IMAGE:I = 0x7f020059

.field protected static final TAB4_NAME:Ljava/lang/String; = "\u7cfb\u7edf"

.field protected static final TAB4_ON_IMAGE:I = 0x7f020054

.field protected static final TAB4_TAG:Ljava/lang/String; = "tab_4"

.field private static final TWO_MINUTES:I = 0x1d4c0

.field public static final XIAMEN_LATITUDE:D = 24.486

.field public static final XIAMEN_LONGITUDE:D = 118.14

.field public static city:Ljava/lang/String;

.field public static currentCityAddress:Ljava/lang/String;

.field public static latitude:D

.field public static lbsLocManagerProxy:Lcom/peptalk/client/lbs/android/LocationManagerProxy;

.field public static locationListener:Landroid/location/LocationListener;

.field public static longitude:D

.field public static nowBestLocation:Landroid/location/Location;

.field public static sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;


# instance fields
.field protected NetWork_Status:Z

.field protected cTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;

.field protected cTimer:Ljava/util/Timer;

.field private clickListener:Landroid/view/View$OnClickListener;

.field protected connetingNetwork:Z

.field protected firstBedLaction:Z

.field protected firstTimeInHome:Z

.field protected homeHandler:Landroid/os/Handler;

.field protected initMapFinish:Z

.field protected isVersionChecked:Z

.field protected loadingText:Landroid/widget/TextView;

.field protected loadingView:Landroid/view/View;

.field private mapView:Landroid/webkit/WebView;

.field protected nearbyView:Landroid/view/View;

.field protected refreshView:Landroid/view/View;

.field protected searchView:Landroid/view/View;

.field protected staticMapTabHost:Landroid/widget/TabHost;

.field protected timeInterval:J

.field protected verTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;

.field protected verTimer:Ljava/util/Timer;

.field protected verUtil:Lcom/teewoo/app/bus/util/VersionUtil;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    .line 104
    const-wide v0, 0x40387c6a7ef9db23L

    sput-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    .line 105
    const-wide v0, 0x405d88f5c28f5c29L

    sput-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    .line 48
    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 48
    invoke-direct {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;-><init>()V

    .line 82
    const-wide/16 v0, 0x7d0

    iput-wide v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->timeInterval:J

    .line 116
    iput-boolean v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->connetingNetwork:Z

    .line 117
    iput-boolean v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->firstTimeInHome:Z

    .line 118
    iput-boolean v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->firstBedLaction:Z

    .line 119
    iput-boolean v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->NetWork_Status:Z

    .line 120
    iput-boolean v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initMapFinish:Z

    .line 121
    iput-boolean v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->isVersionChecked:Z

    .line 123
    new-instance v0, Lcom/teewoo/app/bus/ui/Home4StaticMap$1;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$1;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->homeHandler:Landroid/os/Handler;

    .line 295
    new-instance v0, Lcom/teewoo/app/bus/ui/Home4StaticMap$2;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$2;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->clickListener:Landroid/view/View$OnClickListener;

    .line 48
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V
    .locals 0
    .parameter

    .prologue
    .line 202
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->doAfterReflashLocationSuccess()V

    return-void
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V
    .locals 0
    .parameter

    .prologue
    .line 219
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->doAfterReflashLocationFaile()V

    return-void
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/Home4StaticMap;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 48
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$3(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V
    .locals 0
    .parameter

    .prologue
    .line 323
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->refreshMap()V

    return-void
.end method

.method static synthetic access$4(Lcom/teewoo/app/bus/ui/Home4StaticMap;Ljava/util/TimerTask;Ljava/util/Timer;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 451
    invoke-direct {p0, p1, p2}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->stopTimerTask(Ljava/util/TimerTask;Ljava/util/Timer;)V

    return-void
.end method

.method static synthetic access$5(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V
    .locals 0
    .parameter

    .prologue
    .line 468
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->locating()V

    return-void
.end method

.method static synthetic access$6(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V
    .locals 0
    .parameter

    .prologue
    .line 418
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->doTimer()V

    return-void
.end method

.method static synthetic access$7(Lcom/teewoo/app/bus/ui/Home4StaticMap;Landroid/location/Location;Landroid/location/Location;)Z
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 501
    invoke-direct {p0, p1, p2}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->isBetterLocation(Landroid/location/Location;Landroid/location/Location;)Z

    move-result v0

    return v0
.end method

.method private doAfterReflashLocationFaile()V
    .locals 3

    .prologue
    .line 220
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    const v1, 0x7f080004

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 221
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingView:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 222
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->connetingNetwork:Z

    .line 223
    return-void
.end method

.method private doAfterReflashLocationSuccess()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 206
    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    if-eqz v1, :cond_0

    .line 208
    const-string v1, "mypreferences"

    invoke-virtual {p0, v1, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 209
    .local v0, edit:Landroid/content/SharedPreferences$Editor;
    const-string v1, "last_location_latitude"

    sget-object v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v2}, Landroid/location/Location;->getLatitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 210
    const-string v1, "last_location_longitude"

    sget-object v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v2}, Landroid/location/Location;->getLongitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 211
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 212
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingView:Landroid/view/View;

    invoke-virtual {v1, v4}, Landroid/view/View;->setVisibility(I)V

    .line 213
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingText:Landroid/widget/TextView;

    const v2, 0x7f080043

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 214
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getMapCenter()V

    .line 215
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initMapView()V

    .line 217
    .end local v0           #edit:Landroid/content/SharedPreferences$Editor;
    :cond_0
    return-void
.end method

.method private doTimer()V
    .locals 6

    .prologue
    const/4 v4, 0x0

    .line 419
    new-instance v0, Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;

    invoke-direct {v0, p0, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->cTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;

    .line 420
    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->cTimer:Ljava/util/Timer;

    .line 421
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->cTimer:Ljava/util/Timer;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->cTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$EndTask;

    iget-wide v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->timeInterval:J

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    .line 422
    iget-boolean v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->isVersionChecked:Z

    if-nez v0, :cond_0

    .line 423
    new-instance v0, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;

    invoke-direct {v0, p0, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;

    .line 424
    new-instance v0, Ljava/util/Timer;

    invoke-direct {v0}, Ljava/util/Timer;-><init>()V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verTimer:Ljava/util/Timer;

    .line 425
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verTimer:Ljava/util/Timer;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->verTask:Lcom/teewoo/app/bus/ui/Home4StaticMap$VersionTask;

    iget-wide v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->timeInterval:J

    const-wide/16 v4, 0x7

    mul-long/2addr v2, v4

    invoke-virtual {v0, v1, v2, v3}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    .line 427
    :cond_0
    return-void
.end method

.method private exitAlert()V
    .locals 3

    .prologue
    .line 556
    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f08001d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 557
    const v1, 0x7f08004a

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f02005d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 558
    const v1, 0x7f08004e

    .line 559
    new-instance v2, Lcom/teewoo/app/bus/ui/Home4StaticMap$8;

    invoke-direct {v2, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$8;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    .line 558
    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    .line 564
    const v1, 0x7f08004f

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNeutralButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 566
    return-void
.end method

.method private initListener()V
    .locals 2

    .prologue
    .line 290
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->refreshView:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 291
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nearbyView:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 292
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->searchView:Landroid/view/View;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 293
    return-void
.end method

.method private initTabHost()V
    .locals 5

    .prologue
    .line 333
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    invoke-virtual {v0}, Landroid/widget/TabHost;->setup()V

    .line 334
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    const-string v2, "tab_1"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 335
    const v2, 0x7f0a001b

    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(I)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    const-string v2, "\u516c\u4ea4"

    .line 336
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f020008

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 335
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 334
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 337
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    const-string v2, "tab_2"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 338
    new-instance v2, Lcom/teewoo/app/bus/ui/WeatheTab;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    invoke-direct {v2, v3}, Lcom/teewoo/app/bus/ui/WeatheTab;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/widget/TabHost$TabContentFactory;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    const-string v2, "\u5929\u6c14"

    .line 339
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f020066

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 338
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 337
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 340
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    const-string v2, "tab_3"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 341
    new-instance v2, Lcom/teewoo/app/bus/ui/HomeMyselfTab;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    invoke-direct {v2, v3}, Lcom/teewoo/app/bus/ui/HomeMyselfTab;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/widget/TabHost$TabContentFactory;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    const-string v2, "\u81ea\u5df1"

    .line 342
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f020034

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 341
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 340
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 343
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    const-string v2, "tab_4"

    invoke-virtual {v1, v2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 344
    new-instance v2, Lcom/teewoo/app/bus/ui/HomeSystemTab;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    invoke-direct {v2, v3}, Lcom/teewoo/app/bus/ui/HomeSystemTab;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, v2}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/widget/TabHost$TabContentFactory;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    const-string v2, "\u7cfb\u7edf"

    .line 345
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f020059

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    .line 344
    invoke-virtual {v1, v2, v3}, Landroid/widget/TabHost$TabSpec;->setIndicator(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)Landroid/widget/TabHost$TabSpec;

    move-result-object v1

    .line 343
    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 346
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    new-instance v1, Lcom/teewoo/app/bus/ui/Home4StaticMap$6;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$6;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V

    .line 381
    return-void
.end method

.method private isBetterLocation(Landroid/location/Location;Landroid/location/Location;)Z
    .locals 13
    .parameter "newlocation"
    .parameter "oldBestLocation"

    .prologue
    .line 502
    if-nez p2, :cond_0

    .line 503
    const/4 v9, 0x1

    .line 534
    :goto_0
    return v9

    .line 506
    :cond_0
    invoke-virtual {p1}, Landroid/location/Location;->getTime()J

    move-result-wide v9

    invoke-virtual {p2}, Landroid/location/Location;->getTime()J

    move-result-wide v11

    sub-long v7, v9, v11

    .line 507
    .local v7, timeDelta:J
    const-wide/32 v9, 0x1d4c0

    cmp-long v9, v7, v9

    if-lez v9, :cond_1

    const/4 v9, 0x1

    move v5, v9

    .line 508
    .local v5, isSignificantlyNewer:Z
    :goto_1
    const-wide/32 v9, -0x1d4c0

    cmp-long v9, v7, v9

    if-gez v9, :cond_2

    const/4 v9, 0x1

    move v6, v9

    .line 509
    .local v6, isSignificantlyOlder:Z
    :goto_2
    const-wide/16 v9, 0x0

    cmp-long v9, v7, v9

    if-lez v9, :cond_3

    const/4 v9, 0x1

    move v3, v9

    .line 511
    .local v3, isNewer:Z
    :goto_3
    if-eqz v5, :cond_4

    .line 512
    const/4 v9, 0x1

    goto :goto_0

    .line 507
    .end local v3           #isNewer:Z
    .end local v5           #isSignificantlyNewer:Z
    .end local v6           #isSignificantlyOlder:Z
    :cond_1
    const/4 v9, 0x0

    move v5, v9

    goto :goto_1

    .line 508
    .restart local v5       #isSignificantlyNewer:Z
    :cond_2
    const/4 v9, 0x0

    move v6, v9

    goto :goto_2

    .line 509
    .restart local v6       #isSignificantlyOlder:Z
    :cond_3
    const/4 v9, 0x0

    move v3, v9

    goto :goto_3

    .line 513
    .restart local v3       #isNewer:Z
    :cond_4
    if-eqz v6, :cond_5

    .line 514
    const/4 v9, 0x0

    goto :goto_0

    .line 518
    :cond_5
    invoke-virtual {p1}, Landroid/location/Location;->getAccuracy()F

    move-result v9

    invoke-virtual {p2}, Landroid/location/Location;->getAccuracy()F

    move-result v10

    sub-float/2addr v9, v10

    float-to-int v0, v9

    .line 519
    .local v0, accuracyDelta:I
    if-lez v0, :cond_6

    const/4 v9, 0x1

    move v1, v9

    .line 520
    .local v1, isLessAccurate:Z
    :goto_4
    if-gez v0, :cond_7

    const/4 v9, 0x1

    move v2, v9

    .line 521
    .local v2, isMoreAccurate:Z
    :goto_5
    const/16 v9, 0xc8

    if-le v0, v9, :cond_8

    const/4 v9, 0x1

    move v4, v9

    .line 526
    .local v4, isSignificantlyLessAccurate:Z
    :goto_6
    if-eqz v2, :cond_9

    .line 527
    const/4 v9, 0x1

    goto :goto_0

    .line 519
    .end local v1           #isLessAccurate:Z
    .end local v2           #isMoreAccurate:Z
    .end local v4           #isSignificantlyLessAccurate:Z
    :cond_6
    const/4 v9, 0x0

    move v1, v9

    goto :goto_4

    .line 520
    .restart local v1       #isLessAccurate:Z
    :cond_7
    const/4 v9, 0x0

    move v2, v9

    goto :goto_5

    .line 521
    .restart local v2       #isMoreAccurate:Z
    :cond_8
    const/4 v9, 0x0

    move v4, v9

    goto :goto_6

    .line 528
    .restart local v4       #isSignificantlyLessAccurate:Z
    :cond_9
    if-eqz v3, :cond_a

    if-nez v1, :cond_a

    .line 529
    const/4 v9, 0x1

    goto :goto_0

    .line 531
    :cond_a
    if-eqz v3, :cond_b

    if-nez v4, :cond_b

    .line 532
    const/4 v9, 0x1

    goto :goto_0

    .line 534
    :cond_b
    const/4 v9, 0x0

    goto :goto_0
.end method

.method private locating()V
    .locals 7

    .prologue
    .line 469
    new-instance v0, Lcom/teewoo/app/bus/ui/Home4StaticMap$7;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$7;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    sput-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->locationListener:Landroid/location/LocationListener;

    .line 491
    new-instance v6, Landroid/location/Criteria;

    invoke-direct {v6}, Landroid/location/Criteria;-><init>()V

    .line 492
    .local v6, locationCriteria:Landroid/location/Criteria;
    const/4 v0, 0x1

    invoke-virtual {v6, v0}, Landroid/location/Criteria;->setAccuracy(I)V

    .line 493
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->lbsLocManagerProxy:Lcom/peptalk/client/lbs/android/LocationManagerProxy;

    const-string v1, "lbs"

    const-wide/32 v2, 0x1d4c0

    const v4, 0x459c4000

    sget-object v5, Lcom/teewoo/app/bus/ui/Home4StaticMap;->locationListener:Landroid/location/LocationListener;

    invoke-virtual/range {v0 .. v5}, Lcom/peptalk/client/lbs/android/LocationManagerProxy;->requestLocationUpdates(Ljava/lang/String;JFLandroid/location/LocationListener;)V

    .line 494
    return-void
.end method

.method private refreshLocation()V
    .locals 2

    .prologue
    .line 582
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    if-nez v0, :cond_0

    .line 583
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->homeHandler:Landroid/os/Handler;

    const/4 v1, 0x5

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 586
    :goto_0
    return-void

    .line 585
    :cond_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->homeHandler:Landroid/os/Handler;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0
.end method

.method private refreshMap()V
    .locals 2

    .prologue
    .line 324
    iget-boolean v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->connetingNetwork:Z

    if-eqz v0, :cond_0

    .line 330
    :goto_0
    return-void

    .line 326
    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->connetingNetwork:Z

    .line 327
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingView:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 328
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingText:Landroid/widget/TextView;

    const v1, 0x7f080003

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 329
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->refreshLocation()V

    goto :goto_0
.end method

.method private stopTimerTask(Ljava/util/TimerTask;Ljava/util/Timer;)V
    .locals 0
    .parameter "task"
    .parameter "timer"

    .prologue
    .line 452
    if-eqz p1, :cond_0

    .line 453
    invoke-virtual {p1}, Ljava/util/TimerTask;->cancel()Z

    .line 454
    const/4 p1, 0x0

    .line 456
    :cond_0
    if-eqz p2, :cond_1

    .line 457
    invoke-virtual {p2}, Ljava/util/Timer;->cancel()V

    .line 458
    const/4 p2, 0x0

    .line 461
    :cond_1
    return-void
.end method


# virtual methods
.method protected doAfterLocationFailure()V
    .locals 3

    .prologue
    .line 165
    iget-boolean v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->firstBedLaction:Z

    if-eqz v0, :cond_0

    .line 166
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->firstBedLaction:Z

    .line 167
    :cond_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    const v1, 0x7f080057

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 168
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingView:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 169
    return-void
.end method

.method protected doAfterLocationSuccess()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 175
    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    if-eqz v1, :cond_0

    .line 177
    const-string v1, "mypreferences"

    invoke-virtual {p0, v1, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 178
    .local v0, edit:Landroid/content/SharedPreferences$Editor;
    const-string v1, "last_location_latitude"

    sget-object v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v2}, Landroid/location/Location;->getLatitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 179
    const-string v1, "last_location_longitude"

    sget-object v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v2}, Landroid/location/Location;->getLongitude()D

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/String;->valueOf(D)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 180
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 181
    iget-boolean v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->firstTimeInHome:Z

    if-eqz v1, :cond_0

    .line 182
    iput-boolean v4, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->firstTimeInHome:Z

    .line 183
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f08001d

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 184
    const v2, 0x7f080053

    .line 183
    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 184
    const v2, 0x7f08004e

    .line 185
    new-instance v3, Lcom/teewoo/app/bus/ui/Home4StaticMap$3;

    invoke-direct {v3, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$3;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    .line 184
    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 190
    const v2, 0x7f08004f

    .line 191
    new-instance v3, Lcom/teewoo/app/bus/ui/Home4StaticMap$4;

    invoke-direct {v3, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$4;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    .line 190
    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 197
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 200
    .end local v0           #edit:Landroid/content/SharedPreferences$Editor;
    :cond_0
    return-void
.end method

.method public exit()V
    .locals 1

    .prologue
    .line 589
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->lbsLocManagerProxy:Lcom/peptalk/client/lbs/android/LocationManagerProxy;

    invoke-virtual {v0}, Lcom/peptalk/client/lbs/android/LocationManagerProxy;->destroy()V

    .line 590
    invoke-super {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;->exit()V

    .line 591
    return-void
.end method

.method protected getMapCenter()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 398
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    if-eqz v0, :cond_0

    .line 399
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v0}, Landroid/location/Location;->getLatitude()D

    move-result-wide v0

    sput-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    .line 400
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nowBestLocation:Landroid/location/Location;

    invoke-virtual {v0}, Landroid/location/Location;->getLongitude()D

    move-result-wide v0

    sput-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    .line 405
    :goto_0
    return-void

    .line 402
    :cond_0
    const-string v0, "mypreferences"

    invoke-virtual {p0, v0, v3}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "last_location_latitude"

    const-string v2, "24.486000"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v0

    sput-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    .line 403
    const-string v0, "mypreferences"

    invoke-virtual {p0, v0, v3}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "last_location_longitude"

    const-string v2, "118.140000"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v0

    sput-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    goto :goto_0
.end method

.method protected initMapView()V
    .locals 6

    .prologue
    const/4 v5, 0x1

    .line 384
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 385
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    invoke-virtual {v1, v5}, Landroid/webkit/WebView;->setVerticalScrollBarEnabled(Z)V

    .line 386
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    invoke-virtual {v1, v5}, Landroid/webkit/WebView;->setHorizontalScrollBarEnabled(Z)V

    .line 387
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    invoke-virtual {v1, v5}, Landroid/webkit/WebView;->setClickable(Z)V

    .line 389
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    new-instance v2, Lcom/teewoo/app/bus/ui/Home4StaticMap$MyWebChromeClient;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/teewoo/app/bus/ui/Home4StaticMap$MyWebChromeClient;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;Lcom/teewoo/app/bus/ui/Home4StaticMap$MyWebChromeClient;)V

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 390
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    new-instance v2, Lcom/teewoo/app/bus/ui/js/JSInterface;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->homeHandler:Landroid/os/Handler;

    invoke-direct {v2, v3, v4}, Lcom/teewoo/app/bus/ui/js/JSInterface;-><init>(Landroid/content/Context;Landroid/os/Handler;)V

    const-string v3, "doudou"

    invoke-virtual {v1, v2, v3}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 391
    const-string v0, "file:///android_asset/staticmap2.html"

    .line 392
    .local v0, url:Ljava/lang/String;
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    invoke-virtual {v1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 393
    const/4 v1, 0x0

    iput-boolean v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->connetingNetwork:Z

    .line 394
    iput-boolean v5, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initMapFinish:Z

    .line 395
    return-void
.end method

.method public initialUI()V
    .locals 2

    .prologue
    .line 276
    invoke-super {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;->initialUI()V

    .line 277
    iput-object p0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    .line 279
    const v0, 0x7f0a001a

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TabHost;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    .line 280
    const v0, 0x7f0a001f

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->mapView:Landroid/webkit/WebView;

    .line 281
    const v0, 0x7f0a0024

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->refreshView:Landroid/view/View;

    .line 282
    const v0, 0x7f0a0025

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->nearbyView:Landroid/view/View;

    .line 283
    const v0, 0x7f0a0026

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->searchView:Landroid/view/View;

    .line 284
    const v0, 0x7f0a0022

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingText:Landroid/widget/TextView;

    .line 285
    const v0, 0x7f0a0020

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->loadingView:Landroid/view/View;

    .line 286
    new-instance v0, Lcom/teewoo/app/bus/db/MySqliteHelper;

    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->context:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/teewoo/app/bus/db/MySqliteHelper;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->sqliteHepler:Lcom/teewoo/app/bus/db/MySqliteHelper;

    .line 287
    return-void
.end method

.method public onBackPressed()V
    .locals 0

    .prologue
    .line 550
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->exitAlert()V

    .line 551
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 7
    .parameter "savedInstanceState"

    .prologue
    const-wide/16 v5, 0x0

    const/4 v4, 0x0

    .line 229
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "6ae492c80e7b62a04c0281043327644c"

    invoke-static {v1, v2}, Lcom/peptalk/client/lbs/android/LocationManagerProxy;->getInstance(Landroid/content/Context;Ljava/lang/String;)Lcom/peptalk/client/lbs/android/LocationManagerProxy;

    move-result-object v1

    sput-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->lbsLocManagerProxy:Lcom/peptalk/client/lbs/android/LocationManagerProxy;

    .line 230
    invoke-super {p0, p1}, Lcom/teewoo/app/bus/inface/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 231
    const v1, 0x7f030008

    invoke-virtual {p0, v1}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->setContentView(I)V

    .line 232
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initialUI()V

    .line 233
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initTabHost()V

    .line 234
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initListener()V

    .line 236
    const-string v1, "mypreferences"

    invoke-virtual {p0, v1, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "my_city"

    const-string v3, "[\u53a6\u95e8]"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->currentCityAddress:Ljava/lang/String;

    .line 239
    const-string v1, "mypreferences"

    invoke-virtual {p0, v1, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "last_location_latitude"

    const-string v3, "0.0"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v1

    sput-wide v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    .line 240
    const-string v1, "mypreferences"

    invoke-virtual {p0, v1, v4}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    const-string v2, "last_location_longitude"

    const-string v3, "0.0"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v1

    sput-wide v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    .line 241
    sget-wide v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    cmpl-double v1, v1, v5

    if-eqz v1, :cond_0

    sget-wide v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    cmpl-double v1, v1, v5

    if-nez v1, :cond_1

    .line 242
    :cond_0
    const-wide v1, 0x40387c6a7ef9db23L

    sput-wide v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    .line 243
    const-wide v1, 0x405d88f5c28f5c29L

    sput-wide v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    .line 246
    :cond_1
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->initMapView()V

    .line 247
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string v2, "back home"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 248
    .local v0, index:I
    iget-object v1, p0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->staticMapTabHost:Landroid/widget/TabHost;

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->setCurrentTab(I)V

    .line 249
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 541
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 542
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap;->onBackPressed()V

    .line 543
    const/4 v0, 0x1

    .line 545
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/teewoo/app/bus/inface/BaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onResume()V
    .locals 1

    .prologue
    .line 254
    invoke-super {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;->onResume()V

    .line 256
    new-instance v0, Lcom/teewoo/app/bus/ui/Home4StaticMap$5;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$5;-><init>(Lcom/teewoo/app/bus/ui/Home4StaticMap;)V

    .line 265
    invoke-virtual {v0}, Lcom/teewoo/app/bus/ui/Home4StaticMap$5;->start()V

    .line 266
    return-void
.end method

.method public onStop()V
    .locals 2

    .prologue
    .line 271
    invoke-super {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;->onStop()V

    .line 272
    sget-object v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->lbsLocManagerProxy:Lcom/peptalk/client/lbs/android/LocationManagerProxy;

    sget-object v1, Lcom/teewoo/app/bus/ui/Home4StaticMap;->locationListener:Landroid/location/LocationListener;

    invoke-virtual {v0, v1}, Lcom/peptalk/client/lbs/android/LocationManagerProxy;->removeUpdates(Landroid/location/LocationListener;)V

    .line 273
    return-void
.end method
